package com.sgb.kjwl.model.entity.self;

import android.text.TextUtils;

import com.swgk.core.util.DateUtils;

import java.util.List;

/**
 * Describe:    自营司机详情
 * Author:  yangLei
 * Date:    2021/10/14
 */
public class ProDriverDetailsEntity {
    private long acquireTime;//驾驶证初次获取时间
    private String carAge;//司机年龄
    private String certificateNum;//资格证编号
    private long createTime;
    private String driverAge;//	驾龄
    private String headImg;
    private String id;//司机id
    private String idCard;//身份证号
    private String imAccount;//imAccount
    private String imToken;//imToken
    //	车长是否大于4.5米( 1 大于 0 小于等于)
    private Integer isGreater;
    //挂靠状态 1 邀请中 2 已拒绝 3 已同意 4 已解除
    private Integer linkState;
    private String motorcadeName;//所属车队名称
    private String motorcadeNo;//所属车队编号
    private String name;//姓名
    private String nameAndTel;//司机名称+手机号
    private String reason;//原因
    private Integer status;//审核状态（0 待审核 1 审核通过 2 审核不通过）
    private String telphone;//电话
    private String userNo;//用户userNo
    private String driverNo;

    private String mainDriverLicense;//主驾驶证
    private String viceDriverLicense;//	副驾驶证
    private String mainCertificate;//主资格证
    private String viceCertificate;//副资格证
    private String imageDriverSLicenseAuthority;//识图驾驶证机关
    private String imageFileNumber;//识图档案编号
    private String imageIdCard;//识图证号
    private String imageName;//	识图姓名
    private String imageQuasiDrivingModels;//识图准驾车型
    private String imageValidityPeriodStart;//识图有效期限开始
    private String imageValidityPeriodEnd;//识图有效期限结束

    private boolean hasMotorcade;//所在企业下面是否有车队

    /**
     * 司机相关车辆信息
     */
    private List<ProCarInfoEntity> carInfo;

    public boolean isHasMotorcade() {
        return hasMotorcade;
    }

    public void setHasMotorcade(boolean hasMotorcade) {
        this.hasMotorcade = hasMotorcade;
    }

    public long getAcquireTime() {
        return acquireTime;
    }

    public void setAcquireTime(long acquireTime) {
        this.acquireTime = acquireTime;
    }

    public String getCarAge() {
        return carAge;
    }

    public void setCarAge(String carAge) {
        this.carAge = carAge;
    }

    public String getCertificateNum() {
        return certificateNum;
    }

    public void setCertificateNum(String certificateNum) {
        this.certificateNum = certificateNum;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getDriverAge() {
        return driverAge;
    }

    public void setDriverAge(String driverAge) {
        this.driverAge = driverAge;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDriverNo() {
        return driverNo;
    }

    public void setDriverNo(String driverNo) {
        this.driverNo = driverNo;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getImAccount() {
        return imAccount;
    }

    public void setImAccount(String imAccount) {
        this.imAccount = imAccount;
    }

    public String getImToken() {
        return imToken;
    }

    public void setImToken(String imToken) {
        this.imToken = imToken;
    }

    public Integer getIsGreater() {
        return isGreater;
    }

    public void setIsGreater(Integer isGreater) {
        this.isGreater = isGreater;
    }

    public Integer getLinkState() {
        return linkState;
    }

    public void setLinkState(Integer linkState) {
        this.linkState = linkState;
    }

    public String getMotorcadeName() {
        return motorcadeName;
    }

    public void setMotorcadeName(String motorcadeName) {
        this.motorcadeName = motorcadeName;
    }

    public String getMotorcadeNo() {
        return motorcadeNo;
    }

    public void setMotorcadeNo(String motorcadeNo) {
        this.motorcadeNo = motorcadeNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameAndTel() {
        return nameAndTel;
    }

    public void setNameAndTel(String nameAndTel) {
        this.nameAndTel = nameAndTel;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getMainCertificate() {
        return mainCertificate;
    }

    public void setMainCertificate(String mainCertificate) {
        this.mainCertificate = mainCertificate;
    }

    public String getMainDriverLicense() {
        return mainDriverLicense;
    }

    public void setMainDriverLicense(String mainDriverLicense) {
        this.mainDriverLicense = mainDriverLicense;
    }

    public String getViceCertificate() {
        return viceCertificate;
    }

    public void setViceCertificate(String viceCertificate) {
        this.viceCertificate = viceCertificate;
    }

    public String getViceDriverLicense() {
        return viceDriverLicense;
    }

    public void setViceDriverLicense(String viceDriverLicense) {
        this.viceDriverLicense = viceDriverLicense;
    }

    public String getImageDriverSLicenseAuthority() {
        return imageDriverSLicenseAuthority;
    }

    public void setImageDriverSLicenseAuthority(String imageDriverSLicenseAuthority) {
        this.imageDriverSLicenseAuthority = imageDriverSLicenseAuthority;
    }

    public String getImageFileNumber() {
        return imageFileNumber;
    }

    public void setImageFileNumber(String imageFileNumber) {
        this.imageFileNumber = imageFileNumber;
    }

    public String getImageIdCard() {
        return imageIdCard;
    }

    public void setImageIdCard(String imageIdCard) {
        this.imageIdCard = imageIdCard;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public String getImageQuasiDrivingModels() {
        return imageQuasiDrivingModels;
    }

    public void setImageQuasiDrivingModels(String imageQuasiDrivingModels) {
        this.imageQuasiDrivingModels = imageQuasiDrivingModels;
    }

    public String getImageValidityPeriodStart() {
        if (TextUtils.isEmpty(imageValidityPeriodStart)) {
            return "";
        } else {
            return imageValidityPeriodStart;
        }
    }

    public void setImageValidityPeriodStart(String imageValidityPeriodStart) {
        this.imageValidityPeriodStart = imageValidityPeriodStart;
    }

    public String getImageValidityPeriodEnd() {
        if (TextUtils.isEmpty(imageValidityPeriodEnd)) {
            return "";
        } else {
            return imageValidityPeriodEnd;
        }
    }

    public String getImageValidityDate() {
        if (TextUtils.isEmpty(getImageValidityPeriodStart()) && TextUtils.isEmpty(getImageValidityPeriodEnd())) {
            return "/";
        } else
            return getImageValidityPeriodStart() + "至" + getImageValidityPeriodEnd();
    }

    public void setImageValidityPeriodEnd(String imageValidityPeriodEnd) {
        this.imageValidityPeriodEnd = imageValidityPeriodEnd;
    }

    public List<ProCarInfoEntity> getCarInfo() {
        return carInfo;
    }

    public void setCarInfo(List<ProCarInfoEntity> carInfo) {
        this.carInfo = carInfo;
    }
}
